/**
 */

package com.bei_en.common.util;

import java.util.Enumeration;
import javax.servlet.http.HttpSession;
import org.apache.log4j.Logger;

/**
 * @author Guocg
 *
 */
public class LogUtil {

	public static void logSessionAttr(HttpSession session, Logger log,
			String name) {

		Enumeration se1 = session.getAttributeNames();
		while (se1.hasMoreElements()) {
			Object obj = se1.nextElement();
			log.trace(name + ":" + obj + "=" + session.getAttribute("" + obj));
		}
	}
}
